export const formatSignValue = (vals: any) => {
  return {
    ...vals,
    front_img: vals?.front_img ? { url: vals.front_img, extname: 'png', name: 'front_img.png' } : undefined,
    back_img: vals?.back_img ? { url: vals.back_img, extname: 'png', name: 'back_img.png' } : undefined,
    report_img: vals?.report_img ? { url: vals.report_img, extname: 'png', name: 'report_img.png' } : undefined,
  }
}

export const formatSignSubmitValue = (vals: any) => {
  return {
    ...vals,
    front_img: vals?.front_img?.url,
    back_img: vals?.back_img?.url,
    report_img: vals?.report_img?.url,
    waiver: vals?.waiver?.length >= 1 ? 1 : undefined,
  }
}